
//
//  SYDReturnScheduleCell.m
//  PinGJByOwnerSide
//
//  Created by lantaiyuan on 2017/8/9.
//  Copyright © 2017年 lantaiyuan. All rights reserved.
//

#import "SYDReturnScheduleCell.h"
@interface SYDReturnScheduleCell()
@property (weak, nonatomic) IBOutlet UILabel *bankCard;
@property (weak, nonatomic) IBOutlet UILabel *createTime;
@property (weak, nonatomic) IBOutlet UILabel *methodsLbl;
@property (weak, nonatomic) IBOutlet UILabel *reasonLbl;
@property (weak, nonatomic) IBOutlet UILabel *accountTime;
@property (weak, nonatomic) IBOutlet UILabel *method;
@property (weak, nonatomic) IBOutlet UILabel *account;
@property (weak, nonatomic) IBOutlet UILabel *reason;
@property (weak, nonatomic) IBOutlet UILabel *bankLbl;

@end
@implementation SYDReturnScheduleCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)returnScheduleWithBankCard:(NSString *)bankCard createTime:(NSString *)createTime method:(NSString *)method reason:(NSString *)reason accountTime:(NSString *)accountTime status:(NSInteger)status{
    self.bankCard.text = bankCard;
    self.createTime.text = createTime;
    self.methodsLbl.text = method;
    self.reasonLbl.text = reason;
    self.accountTime.text = accountTime;
    if (status == 1) {
        
        self.methodsLbl.hidden = YES;
        self.reasonLbl.hidden = YES;
        self.accountTime.hidden = YES;
        self.method.hidden = YES;
        self.reason.hidden = YES;
        self.account.hidden = YES;
        
    }else if(status == 3){
        self.bankLbl.text = @"收款方式";
        self.bankCard.text = @"钱包收款";
        self.methodsLbl.hidden = YES;
        self.reasonLbl.hidden = YES;
        self.accountTime.hidden = YES;
        self.method.hidden = YES;
        self.reason.hidden = YES;
        self.account.hidden = YES;
    }else{
        self.methodsLbl.hidden = NO;
        self.reasonLbl.hidden = NO;
        self.accountTime.hidden = NO;
        self.method.hidden = NO;
        self.reason.hidden = NO;
        self.account.hidden = NO;
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
